package com.heima.wemedia.feign;

import com.heima.client.wemedia.IWemediaClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.common.pojos.wemedia.WmUser;
import com.heima.wemedia.service.WmUserService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@Api("feign远程调用")
public class WmUserController  {

    @Autowired
    private WmUserService wmUserService;

    /**
     * 添加自媒体用户信息
     */
    @PostMapping("/api/v1/user/addWemediaUser")
    public ResponseResult insertUser(WmUser wmUser) {
       return wmUserService.insertUser(wmUser);
    }



}
